package cn.zeal4j.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Administrator
 * @file Spring-Security-Tutorial
 * @create 2020 09 28 13:59
 */
@Controller
public class PermitController {

    @RequestMapping("admin.page")
    public String toAdminPage() {
        return "permit/admin";
    }

    @RequestMapping("vip-01.page")
    public String toVip01Page() {
        return "permit/vip-01";
    }

    @RequestMapping("ip.page")
    public String toIpPage() {
        return "permit/ip";
    }
}
